package jtk.project4.fleet.field;

import java.awt.Dimension;
import java.text.SimpleDateFormat;

//import jtk.project4.fleet.domain.MaintenanceHistory;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.CalendarControl;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.TableField.AutoResizeMode;
import nl.coderight.jazz.form.field.button.CheckButton;
import nl.coderight.jazz.form.field.button.PushButton;

public class ButtonsMaintenanceHistoryField extends GroupControl <String> {

		private PushButton add;
		private PushButton edit;
		private PushButton delete;
		private PushButton search;
		private PushButton print;
		private CheckButton showRowFiter;
		
		public ButtonsMaintenanceHistoryField(String bindID){
			//setTitle("header.Data Interval Settings");
			setBindID(bindID);
			createFields();
			createLayout();
		}
		
		private void createFields(){
					
			add = new PushButton("Add");
			add.setPreferredSize(new Dimension(75,25));
			edit = new PushButton("Edit");
			delete = new PushButton("Delete");
			search = new PushButton("Search");
			print = new PushButton("Print");
			showRowFiter = new CheckButton("");
			
			edit.setPreferredSize(new Dimension(75,25));
			delete.setPreferredSize(new Dimension(75,25));
			search.setPreferredSize(new Dimension(75,25));
			print.setPreferredSize(new Dimension(75,25));
		}
		
		private void createLayout(){
			setLayout(new FormLayout())
			.addLabel("(6 listed, 1 selected)")
			.addField(add).addField(edit).addField(delete).addField(search).addField(print)
			.addLabel("Show Row Filter").addField(showRowFiter);
		}
		
		
}
